<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
</head>
<body>

    <div id="kuai">
        {{name}}
        <a href="javascript:void(0)" @click="name++">你点我啊</a>
        <input type="text"  @keyup.enter="abc" v-model="val"/>
    </div>
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    var heima = new Vue({
        el: "#kuai",
        data:{
            name:50,
            val:""
        },
        methods:{
            abc(){
                alert("按了回车键,输入的值："+this.val)
            }
        }
    });
</script>


</body>
</html>